Skip to content

Resolve spec-librarian export coverage drift in pkg READMEs - #51592

Merged
pelikhan merged 2 commits into
mainfrom
copilot/spec-librarian-specification-audit
Aug 9, 2026
Merged

Resolve spec-librarian export coverage drift in pkg READMEs#51592
pelikhan merged 2 commits into
mainfrom
copilot/spec-librarian-specification-audit

Conversation

Copilot AI commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

The package spec audit reported a phantom API entry and missing exported-symbol coverage across pkg/cli, pkg/workflow, pkg/parser, and pkg/agentdrain despite full README presence. This PR updates those specs so README export coverage matches current source exports.

  • Spec accuracy corrections

    • Removed the phantom FindOrFetchModelPricing entry from pkg/cli/README.md (symbol is not exported).
    • Updated source-verified appendix counts where symbol coverage increased.
  • Export coverage additions: pkg/parser

    • Added missing exported symbols:
      • Type: MCPRootInfo
      • Vars: ErrUnsupportedSyntax, ErrVerificationSkipped
      • Functions: IsAnyGitHubHostEnvVarSet, IsGitHubHost, IsImportSafeSharedWorkflowOn
  • Export coverage additions: pkg/agentdrain

    • Added missing exported methods:
      • (*Coordinator).AllClusters
      • (*Coordinator).LoadWeightsJSON
      • (*Coordinator).SaveSnapshots
      • (*Coordinator).SaveWeightsJSON
      • (*AnomalyDetector).Analyze
      • (*Masker).Mask
      • (*Miner).Clusters
      • (*Miner).Train
  • Export coverage additions: pkg/workflow

    • Added missing bounded-query/AWF/network/provider/config symbols (types, consts/vars, and methods), including:
      • AWFBoundedQueriesConfig, BoundedQueriesConfig, BoundedQueryRuntime*
      • GitHubMCPDefaultFields, GitHubMCPFeatureFieldsParam
      • BuildEngineSecretValidationStep, HasBashExplicitRestriction
      • (*EngineRegistry).EnginesWithCapability, (*RepoConfig).IsActionFailureIssueExpiresExplicit
  • Export coverage additions: pkg/cli

    • Added missing exported report/config/result and helper symbols (types, constants, functions), including:
      • AuditData, AuditDiff, CrossRunAuditReport, UpgradeConfig, WorkflowTrialResult
      • Image constants (GrantImage, GrypeImage, ShellcheckImage, SyftImage, YamllintImage)
      • Outcome lifecycle constants/statuses
      • RemoveTopLevelFieldFromFrontmatter, RunActionlintOnFiles, RunAddInteractive, MergeWorkflowContent
// Removed from pkg/cli/README.md because it's not exported:
func findModelPricing(provider, model string) (map[string]float64, bool)

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Audit documentation accuracy issues in specifications Resolve spec-librarian export coverage drift in pkg READMEs Aug 9, 2026
Copilot AI requested a review from pelikhan August 9, 2026 13:49
@pelikhan
pelikhan marked this pull request as ready for review August 9, 2026 15:17
Copilot AI balanced review requested due to automatic review settings August 9, 2026 15:17
@pelikhan
pelikhan merged commit db36a16 into main Aug 9, 2026
@pelikhan
pelikhan deleted the copilot/spec-librarian-specification-audit branch August 9, 2026 15:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates package READMEs to align documented export coverage with current Go APIs.

Changes:

  • Adds missing exported symbols across four packages.
  • Removes the phantom CLI pricing function.
  • Updates appendix coverage totals.
Show a summary per file
File Description
pkg/cli/README.md Corrects and expands CLI export coverage.
pkg/workflow/README.md Documents workflow configuration and helper APIs.
pkg/parser/README.md Adds missing parser exports.
pkg/agentdrain/README.md Adds exported coordinator, detector, masker, and miner methods.

Review details

Tip

Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment thread pkg/workflow/README.md
| `sandbox.go` | `AiCreditsPricingConfig` | `type AiCreditsPricingConfig struct { Input float64 Output float64 CachedInput *float64 CacheWrite *float64 }` | AiCreditsPricingConfig defines per-token pricing inputs used for AI-credit accounting. |
| `tools_types.go` | `BoundedQueriesConfig` | `type BoundedQueriesConfig struct { PrivateRepos []*BoundedQueryPrivateRepo Runtime BoundedQueryRuntime Timeout *int MemoryLimit string Interpreter string MaxInvocations *int ParseError string }` | BoundedQueriesConfig defines user-facing bounded-query tool configuration. |
| `tools_types.go` | `BoundedQueryPrivateRepo` | `type BoundedQueryPrivateRepo struct { Repo string Sensitivity string }` | BoundedQueryPrivateRepo describes one private repository entry in bounded-query config. |
| `tools_types.go` | `BoundedQueryRuntime` | `type BoundedQueryRuntime string` | BoundedQueryRuntime enumerates supported bounded-query runtimes. |
Comment thread pkg/workflow/README.md
| File | Symbol | Declaration | Description |
|------|--------|-------------|-------------|
| `engine_helpers.go` | `BuildEngineSecretValidationStep` | `func BuildEngineSecretValidationStep(workflowData *WorkflowData, config EngineSecretValidationConfig) GitHubActionStep` | BuildEngineSecretValidationStep builds the reusable secret-validation step for engine credentials. |
| `engine_registry.go` | `(*EngineRegistry).EnginesWithCapability` | `func (r *EngineRegistry) EnginesWithCapability(predicate func(EngineCapabilities) bool) []string` | EnginesWithCapability returns sorted engine IDs that satisfy a capability predicate. |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[spec-librarian] Specification Audit — 2026-08-09 — 5 issues found

3 participants